package com.sptpc.demo.service;

import com.sptpc.demo.controller.requests.SearchOrderRequest;
import com.sptpc.demo.model.Order;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

import java.util.List;

public interface IOrderService {
    Order addNewOrder(Order newOrder);

    Page<Order> searchOrders(SearchOrderRequest condition, PageRequest page);

    void addNewOrder000(Order order, List<Integer> items);

    void deleteOrder(Integer id);

    Order getOrderById(Integer id);

    void updateOrder(Order order);

    List<Order> findOrdersByCustomer(String customer);
}
